package com.jk.garden1.controller;


import com.jk.garden1.entity.NoteEntity;
import com.jk.garden1.service.NoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 信息管理
 */
@RestController
@RequestMapping("Note")
public class NoteController {
    @Autowired
    private NoteService noteService;
    /**
     * 查询全部
     */
    @RequestMapping("selectNoteList")
    public List<NoteEntity> selectNoteList(){
        return noteService.selectNoteList();
    }
    /**
     * mybatis-plays删除全部
     */
    @RequestMapping("delAll")
    public void delAll(){
        noteService.delAll();
    }
}
